﻿using FluentNHibernate.Mapping;
using ScriptManager.Data.Domain.Entities;

namespace ScriptManager.Data.Domain.Mapping
{
    public class AuthorMap : ClassMap<Author>
    {
        public AuthorMap()
        {
            Id( m => m.ID ).GeneratedBy.Identity();

            Map( m => m.FirstName ).WithLengthOf( 40 );
            Map( m => m.LastName ).WithLengthOf( 40 ); 
        }
    }
}
